#include<iostream>
#include<algorithm>
using namespace std;
int main()
{ 
    int a[1]={1},b[1]={2};
    swap(a[0],b[0]);
    cout<<a[0]<<" "<<b[0]<<endl;
    cout<<max(a[0],b[0])<<" "<<min(a[0],b[0])<<endl;
    system("pause");
    return 0;
} 
